package com.ruoyi.user.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 对象 ym_product
 * 
 * @author zq
 * @date 2022-11-08
 */
public class YmProductEntity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增id */
    private Long id;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String pname;

    /** 关联类型表的typeid */
    @Excel(name = "关联类型表的typeid")
    private Long typeid;

    /** 产品原价 */
    @Excel(name = "产品原价")
    private BigDecimal tprice;

    /** 产品介绍 */
    @Excel(name = "产品介绍")
    private String tintroduce;

    /** 图片路径 */
    @Excel(name = "图片路径")
    private String pimageurl;

    /** 1：可做热饮 0：不可做热饮 */
    @Excel(name = "1：可做热饮 0：不可做热饮")
    private Integer phostate;

    /** 折扣 0-1之间的2位小数 */
    @Excel(name = "折扣 0-1之间的2位小数")
    private BigDecimal pdiscount;

    /** 产品状态 1：可用 0：不可用 */
    @Excel(name = "产品状态 1：可用 0：不可用")
    private Integer pstate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPname(String pname) 
    {
        this.pname = pname;
    }

    public String getPname() 
    {
        return pname;
    }
    public void setTypeid(Long typeid) 
    {
        this.typeid = typeid;
    }

    public Long getTypeid() 
    {
        return typeid;
    }
    public void setTprice(BigDecimal tprice) 
    {
        this.tprice = tprice;
    }

    public BigDecimal getTprice() 
    {
        return tprice;
    }
    public void setTintroduce(String tintroduce) 
    {
        this.tintroduce = tintroduce;
    }

    public String getTintroduce() 
    {
        return tintroduce;
    }
    public void setPimageurl(String pimageurl) 
    {
        this.pimageurl = pimageurl;
    }

    public String getPimageurl() 
    {
        return pimageurl;
    }
    public void setPhostate(Integer phostate) 
    {
        this.phostate = phostate;
    }

    public Integer getPhostate() 
    {
        return phostate;
    }
    public void setPdiscount(BigDecimal pdiscount) 
    {
        this.pdiscount = pdiscount;
    }

    public BigDecimal getPdiscount() 
    {
        return pdiscount;
    }
    public void setPstate(Integer pstate) 
    {
        this.pstate = pstate;
    }

    public Integer getPstate() 
    {
        return pstate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pname", getPname())
            .append("typeid", getTypeid())
            .append("tprice", getTprice())
            .append("tintroduce", getTintroduce())
            .append("pimageurl", getPimageurl())
            .append("phostate", getPhostate())
            .append("pdiscount", getPdiscount())
            .append("pstate", getPstate())
            .toString();
    }
}
